package com.ruoyi.jypc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 jypc_news
 * 
 * @author xymc
 * @date 2022-10-18
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻编号 */
    @Excel(name = "系部编号")
    private Long newsid;

    /** 新闻名称 */
    @Excel(name = "新闻名称")
    private String newsname;

    /** 作者 */
    @Excel(name = "作者")
    private Long userid;

    /** 新闻类别(1为新闻 2为公告) */
    @Excel(name = "新闻类别(1=为新闻,2=为公告)")
    private String newstype;

    /** 新闻详情 */
    @Excel(name = "新闻详情")
    private String newsmsg;

    /** 新闻状态(1为审核中 2为审核通过 3为审核不通过) */
    @Excel(name = "新闻状态(1=待审核,2=通过,3=不通过)")
    private Long newsstatus;
    
    private User User;
    public User getUser() {
		return User;
	}

	public void setUser(User user) {
		User = user;
	}
    
    /** 管理员名称 */
    @Excel(name = "管理员名称")
    private String adminname;

    /** 备注1 */
    @Excel(name = "备注1")
    private String remark1;

    /** 备注2 */
    @Excel(name = "备注2")
    private String remark2;

    public void setNewsid(Long newsid) 
    {
        this.newsid = newsid;
    }

    public Long getNewsid() 
    {
        return newsid;
    }
    public void setNewsname(String newsname) 
    {
        this.newsname = newsname;
    }

    public String getNewsname() 
    {
        return newsname;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setNewstype(String newstype) 
    {
        this.newstype = newstype;
    }

    public String getNewstype() 
    {
        return newstype;
    }
    public void setNewsmsg(String newsmsg) 
    {
        this.newsmsg = newsmsg;
    }

    public String getNewsmsg() 
    {
        return newsmsg;
    }
    public void setNewsstatus(Long newsstatus) 
    {
        this.newsstatus = newsstatus;
    }

    public Long getNewsstatus() 
    {
        return newsstatus;
    }
    public void setAdminname(String adminname) 
    {
        this.adminname = adminname;
    }

    public String getAdminname() 
    {
        return adminname;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }

	@Override
	public String toString() {
		return "News [newsid=" + newsid + ", newsname=" + newsname + ", userid=" + userid + ", newstype=" + newstype
				+ ", newsmsg=" + newsmsg + ", newsstatus=" + newsstatus + ", User=" + User + ", adminname=" + adminname
				+ ", remark1=" + remark1 + ", remark2=" + remark2 + "]";
	}
    
}
